#define MAXSIZE 10

typedef struct
{
    int r[MAXSIZE + 1];
    int length;
}SqList;

void swap(SqList *l, int i, int j)
{
    int temp = l->r[i];
    l->r[i] = l->r[j];
    l->r[j] = temp;
}


